import { AnimationRenderer } from "../AnimationRenderer";
import { Behaviour } from "../engine/Behaviour";
import { TextRenderer } from "../engine/TextRenderer";
import { string } from "../engine/validators/string";

export class schoolgateScenePrefabBehaviour extends Behaviour {

    //  private _userName: string = '';
    // @string()
    // public get userName(): string {
    //     return this._userName;
    // }
    // public set userName(value: string) {
    //     const changed = this._userName !== value;
    //     this._userName = value;
    //     if (changed) {
    //         this.invalidateProperties();
    //     }
    // }

    // private _action = '';
    // @string()
    // public get action() {
    //     return this._action;
    // }
    // public set action(value) {
    //     this._action = value;
    //     const changed = this._action !== value;
    //     if (changed) {
    //         this.invalidateProperties();
    //     }

    // }

    updateProperties() {
        //this.gameObject.children[1].getBehaviour(TextRenderer).text = this.userName
        //this.gameObject.children[0].getBehaviour(AnimationRenderer).action = this._action;
    }
}